# coding: utf-8

from rest_framework import serializers

from . import models


class OpLogSerializer(serializers.ModelSerializer):

    object_type_cn = serializers.CharField(
        source='get_object_type_display',
    )

    class Meta:
        model = models.OpLog
        fields = '__all__'
